import App from '../App.vue'
// 家在路由文件
import Index from '../components/view/index/Index.vue'
import Table from '../components/view/table/Table.vue'
import Form from '../components/view/form/Form.vue'
import Editor from '../components/view/editor/Editor.vue'
import Login from '../components/login/Login.vue'



var routes = [{
    path: '/',
    component: App,
    // 加载子路由
    children: [{
            path: '/index',
            component: Index,
            name: 'index',
            // 给前面的svg图类名
            class: 'fa-line-chart'
        }, {
            path: '/table',
            component: Table,
            name: 'table',
            class: 'fa-table'
        }, {
            path: '/form',
            component: Form,
            name: 'form',
            class: 'fa-newspaper-o'
        }, {
            path: '/editor',
            component: Editor,
            name: 'editor',
            class: 'fa-plug'
        }

    ]
}, {
    path: '/login',
    component: Login
}]
export default routes